import request from '@/utils/request';

// 列表查询
export function queryNewestAlarmList(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/ops-workbench/ywgzt/newestAlarm/getNewestAlarmList',
		method: 'post',
		data: data,
	});
}

// 列表下载
export function downloadNewestAlarmList(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/ops-workbench/ywgzt/newestAlarm/getNewestAlarmListDownLoad',
		method: 'post',
		data: JSON.stringify(data),
		responseType: 'blob',
	});
}

// 列表下载
export function queryHealthAlarmList(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/ops-workbench/ywgzt/newestAlarm/getHealthAlarmList',
		method: 'post',
		data: data,
	});
}

// 列表下载
export function getHealthAlarmListDownLoad(data: anyObj): ApiPromise<ApiResponse> {
	return request({
		url: '/ops-workbench/ywgzt/newestAlarm/getHealthAlarmListDownLoad',
		method: 'post',
		data: JSON.stringify(data),
		responseType: 'blob',
	});
}
